Integrand size = 26, antiderivative size = 526 \[ \int (f+g x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2} \, dx=\frac {3 b^{3/2} e^{-\frac {a}{b n}} (e f-d g)^2 n^{3/2} \sqrt {\pi } (d+e x) \left (c (d+e x)^n\right )^{-1/n} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{4 e^3}+\frac {3 b^{3/2} e^{-\frac {2 a}{b n}} g (e f-d g) n^{3/2} \sqrt {\frac {\pi }{2}} (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n} \text {erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{8 e^3}+\frac {b^{3/2} e^{-\frac {3 a}{b n}} g^2 n^{3/2} \sqrt {\frac {\pi }{3}} (d+e x)^3 \left (c (d+e x)^n\right )^{-3/n} \text {erfi}\left (\frac {\sqrt {3} \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{12 e^3}-\frac {3 b (e f-d g)^2 n (d+e x) \sqrt {a+b \log \left (c (d+e x)^n\right )}}{2 e^3}-\frac {3 b g (e f-d g) n (d+e x)^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}{4 e^3}-\frac {b g^2 n (d+e x)^3 \sqrt {a+b \log \left (c (d+e x)^n\right )}}{6 e^3}+\frac {(e f-d g)^2 (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^3}+\frac {g (e f-d g) (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^3}+\frac {g^2 (d+e x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{3 e^3} \]
[Out]
Time = 0.58 (sec) , antiderivative size = 526, normalized size of antiderivative = 1.00, number of steps used = 20, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.346, Rules used = {2448, 2436, 2333, 2337, 2211, 2235, 2437, 2342, 2347} \[ \int (f+g x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2} \, dx=\frac {3 \sqrt {\frac {\pi }{2}} b^{3/2} g n^{3/2} e^{-\frac {2 a}{b n}} (d+e x)^2 (e f-d g) \left (c (d+e x)^n\right )^{-2/n} \text {erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{8 e^3}+\frac {3 \sqrt {\pi } b^{3/2} n^{3/2} e^{-\frac {a}{b n}} (d+e x) (e f-d g)^2 \left (c (d+e x)^n\right )^{-1/n} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{4 e^3}+\frac {\sqrt {\frac {\pi }{3}} b^{3/2} g^2 n^{3/2} e^{-\frac {3 a}{b n}} (d+e x)^3 \left (c (d+e x)^n\right )^{-3/n} \text {erfi}\left (\frac {\sqrt {3} \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{12 e^3}+\frac {g (d+e x)^2 (e f-d g) \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^3}+\frac {(d+e x) (e f-d g)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^3}-\frac {3 b g n (d+e x)^2 (e f-d g) \sqrt {a+b \log \left (c (d+e x)^n\right )}}{4 e^3}-\frac {3 b n (d+e x) (e f-d g)^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}{2 e^3}+\frac {g^2 (d+e x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{3 e^3}-\frac {b g^2 n (d+e x)^3 \sqrt {a+b \log \left (c (d+e x)^n\right )}}{6 e^3} \]
[In]
[Out]
Rule 2211
Rule 2235
Rule 2333
Rule 2337
Rule 2342
Rule 2347
Rule 2436
Rule 2437
Rule 2448
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {(e f-d g)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^2}+\frac {2 g (e f-d g) (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^2}+\frac {g^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^2}\right ) \, dx \\ & = \frac {g^2 \int (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2} \, dx}{e^2}+\frac {(2 g (e f-d g)) \int (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2} \, dx}{e^2}+\frac {(e f-d g)^2 \int \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2} \, dx}{e^2} \\ & = \frac {g^2 \text {Subst}\left (\int x^2 \left (a+b \log \left (c x^n\right )\right )^{3/2} \, dx,x,d+e x\right )}{e^3}+\frac {(2 g (e f-d g)) \text {Subst}\left (\int x \left (a+b \log \left (c x^n\right )\right )^{3/2} \, dx,x,d+e x\right )}{e^3}+\frac {(e f-d g)^2 \text {Subst}\left (\int \left (a+b \log \left (c x^n\right )\right )^{3/2} \, dx,x,d+e x\right )}{e^3} \\ & = \frac {(e f-d g)^2 (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^3}+\frac {g (e f-d g) (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^3}+\frac {g^2 (d+e x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{3 e^3}-\frac {\left (b g^2 n\right ) \text {Subst}\left (\int x^2 \sqrt {a+b \log \left (c x^n\right )} \, dx,x,d+e x\right )}{2 e^3}-\frac {(3 b g (e f-d g) n) \text {Subst}\left (\int x \sqrt {a+b \log \left (c x^n\right )} \, dx,x,d+e x\right )}{2 e^3}-\frac {\left (3 b (e f-d g)^2 n\right ) \text {Subst}\left (\int \sqrt {a+b \log \left (c x^n\right )} \, dx,x,d+e x\right )}{2 e^3} \\ & = -\frac {3 b (e f-d g)^2 n (d+e x) \sqrt {a+b \log \left (c (d+e x)^n\right )}}{2 e^3}-\frac {3 b g (e f-d g) n (d+e x)^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}{4 e^3}-\frac {b g^2 n (d+e x)^3 \sqrt {a+b \log \left (c (d+e x)^n\right )}}{6 e^3}+\frac {(e f-d g)^2 (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^3}+\frac {g (e f-d g) (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^3}+\frac {g^2 (d+e x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{3 e^3}+\frac {\left (b^2 g^2 n^2\right ) \text {Subst}\left (\int \frac {x^2}{\sqrt {a+b \log \left (c x^n\right )}} \, dx,x,d+e x\right )}{12 e^3}+\frac {\left (3 b^2 g (e f-d g) n^2\right ) \text {Subst}\left (\int \frac {x}{\sqrt {a+b \log \left (c x^n\right )}} \, dx,x,d+e x\right )}{8 e^3}+\frac {\left (3 b^2 (e f-d g)^2 n^2\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a+b \log \left (c x^n\right )}} \, dx,x,d+e x\right )}{4 e^3} \\ & = -\frac {3 b (e f-d g)^2 n (d+e x) \sqrt {a+b \log \left (c (d+e x)^n\right )}}{2 e^3}-\frac {3 b g (e f-d g) n (d+e x)^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}{4 e^3}-\frac {b g^2 n (d+e x)^3 \sqrt {a+b \log \left (c (d+e x)^n\right )}}{6 e^3}+\frac {(e f-d g)^2 (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^3}+\frac {g (e f-d g) (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^3}+\frac {g^2 (d+e x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{3 e^3}+\frac {\left (b^2 g^2 n (d+e x)^3 \left (c (d+e x)^n\right )^{-3/n}\right ) \text {Subst}\left (\int \frac {e^{\frac {3 x}{n}}}{\sqrt {a+b x}} \, dx,x,\log \left (c (d+e x)^n\right )\right )}{12 e^3}+\frac {\left (3 b^2 g (e f-d g) n (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n}\right ) \text {Subst}\left (\int \frac {e^{\frac {2 x}{n}}}{\sqrt {a+b x}} \, dx,x,\log \left (c (d+e x)^n\right )\right )}{8 e^3}+\frac {\left (3 b^2 (e f-d g)^2 n (d+e x) \left (c (d+e x)^n\right )^{-1/n}\right ) \text {Subst}\left (\int \frac {e^{\frac {x}{n}}}{\sqrt {a+b x}} \, dx,x,\log \left (c (d+e x)^n\right )\right )}{4 e^3} \\ & = -\frac {3 b (e f-d g)^2 n (d+e x) \sqrt {a+b \log \left (c (d+e x)^n\right )}}{2 e^3}-\frac {3 b g (e f-d g) n (d+e x)^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}{4 e^3}-\frac {b g^2 n (d+e x)^3 \sqrt {a+b \log \left (c (d+e x)^n\right )}}{6 e^3}+\frac {(e f-d g)^2 (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^3}+\frac {g (e f-d g) (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^3}+\frac {g^2 (d+e x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{3 e^3}+\frac {\left (b g^2 n (d+e x)^3 \left (c (d+e x)^n\right )^{-3/n}\right ) \text {Subst}\left (\int e^{-\frac {3 a}{b n}+\frac {3 x^2}{b n}} \, dx,x,\sqrt {a+b \log \left (c (d+e x)^n\right )}\right )}{6 e^3}+\frac {\left (3 b g (e f-d g) n (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n}\right ) \text {Subst}\left (\int e^{-\frac {2 a}{b n}+\frac {2 x^2}{b n}} \, dx,x,\sqrt {a+b \log \left (c (d+e x)^n\right )}\right )}{4 e^3}+\frac {\left (3 b (e f-d g)^2 n (d+e x) \left (c (d+e x)^n\right )^{-1/n}\right ) \text {Subst}\left (\int e^{-\frac {a}{b n}+\frac {x^2}{b n}} \, dx,x,\sqrt {a+b \log \left (c (d+e x)^n\right )}\right )}{2 e^3} \\ & = \frac {3 b^{3/2} e^{-\frac {a}{b n}} (e f-d g)^2 n^{3/2} \sqrt {\pi } (d+e x) \left (c (d+e x)^n\right )^{-1/n} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{4 e^3}+\frac {3 b^{3/2} e^{-\frac {2 a}{b n}} g (e f-d g) n^{3/2} \sqrt {\frac {\pi }{2}} (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n} \text {erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{8 e^3}+\frac {b^{3/2} e^{-\frac {3 a}{b n}} g^2 n^{3/2} \sqrt {\frac {\pi }{3}} (d+e x)^3 \left (c (d+e x)^n\right )^{-3/n} \text {erfi}\left (\frac {\sqrt {3} \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{12 e^3}-\frac {3 b (e f-d g)^2 n (d+e x) \sqrt {a+b \log \left (c (d+e x)^n\right )}}{2 e^3}-\frac {3 b g (e f-d g) n (d+e x)^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}{4 e^3}-\frac {b g^2 n (d+e x)^3 \sqrt {a+b \log \left (c (d+e x)^n\right )}}{6 e^3}+\frac {(e f-d g)^2 (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^3}+\frac {g (e f-d g) (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{e^3}+\frac {g^2 (d+e x)^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}{3 e^3} \\ \end{align*}
Time = 0.79 (sec) , antiderivative size = 446, normalized size of antiderivative = 0.85 \[ \int (f+g x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2} \, dx=\frac {(d+e x) \left (144 (e f-d g)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}+144 g (e f-d g) (d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}+48 g^2 (d+e x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}+4 b g^2 n (d+e x)^2 \left (\sqrt {b} e^{-\frac {3 a}{b n}} \sqrt {n} \sqrt {3 \pi } \left (c (d+e x)^n\right )^{-3/n} \text {erfi}\left (\frac {\sqrt {3} \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )-6 \sqrt {a+b \log \left (c (d+e x)^n\right )}\right )+27 b g (e f-d g) n (d+e x) \left (\sqrt {b} e^{-\frac {2 a}{b n}} \sqrt {n} \sqrt {2 \pi } \left (c (d+e x)^n\right )^{-2/n} \text {erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )-4 \sqrt {a+b \log \left (c (d+e x)^n\right )}\right )+108 b (e f-d g)^2 n \left (\sqrt {b} e^{-\frac {a}{b n}} \sqrt {n} \sqrt {\pi } \left (c (d+e x)^n\right )^{-1/n} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )-2 \sqrt {a+b \log \left (c (d+e x)^n\right )}\right )\right )}{144 e^3} \]
[In]
[Out]
\[\int \left (g x +f \right )^{2} {\left (a +b \ln \left (c \left (e x +d \right )^{n}\right )\right )}^{\frac {3}{2}}d x\]
[In]
[Out]
Exception generated. \[ \int (f+g x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
\[ \int (f+g x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2} \, dx=\int \left (a + b \log {\left (c \left (d + e x\right )^{n} \right )}\right )^{\frac {3}{2}} \left (f + g x\right )^{2}\, dx \]
[In]
[Out]
\[ \int (f+g x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2} \, dx=\int { {\left (g x + f\right )}^{2} {\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )}^{\frac {3}{2}} \,d x } \]
[In]
[Out]
\[ \int (f+g x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2} \, dx=\int { {\left (g x + f\right )}^{2} {\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )}^{\frac {3}{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int (f+g x)^2 \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2} \, dx=\int {\left (f+g\,x\right )}^2\,{\left (a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )\right )}^{3/2} \,d x \]
[In]
[Out]